package com.qf.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author H
 * @create 2020-10-30 15:30
 * @strive To be whoever you want to be.
 * @Description:
 */
@Configuration
public class RabbitMqConfig {

    @Bean
    public Queue queue() {
        return new Queue("mail-queue");
    }
}
